import { Event } from "shared/api/event/type";
import fetchApi from "shared/api/strapi";

export class EventApi {
  static getEventsList = () => {
    return fetchApi<Event[]>({
      endpoint: "events",
      query: {
        populate: "*",
        "pagination[pageSize]": "100",
        "sort[0]": "type",
      },
      wrappedByKey: "data",
    });
  };
}
